/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.charge;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 充值记录查询Entity
 * @author 王磊
 * @version 2016-09-21
 */
public class ChargeRecord extends DataEntity<ChargeRecord> {
	
	private static final long serialVersionUID = 1L;
	protected String accountId;		// 账户ID
	protected String amount;		// 借方金额
	protected String memberId;		// member_id
	protected String orders;		// 流水号
	protected String charge;		// 充值Charge
	protected String balance;		// 余额
	protected String oldBalance;		// old_balance
	protected String signature;		// 校验签名
	protected String recordFlag;		// 0表示未付款，1表示已付款，2表示付款失败

    private String memberName;

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public ChargeRecord() {
		super();
	}

	public ChargeRecord(String id){
		super(id);
	}

	@Length(min=0, max=64, message="账户ID长度必须介于 0 和 64 之间")
	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	@Length(min=0, max=64, message="member_id长度必须介于 0 和 64 之间")
	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	@Length(min=0, max=64, message="流水号长度必须介于 0 和 64 之间")
	public String getOrders() {
		return orders;
	}

	public void setOrders(String orders) {
		this.orders = orders;
	}
	
	public String getCharge() {
		return charge;
	}

	public void setCharge(String charge) {
		this.charge = charge;
	}
	
	public String getBalance() {
		return balance;
	}

	public void setBalance(String balance) {
		this.balance = balance;
	}
	
	public String getOldBalance() {
		return oldBalance;
	}

	public void setOldBalance(String oldBalance) {
		this.oldBalance = oldBalance;
	}
	
	@Length(min=0, max=255, message="校验签名长度必须介于 0 和 255 之间")
	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}
	
	@Length(min=0, max=1, message="0表示未付款，1表示已付款，2表示付款失败长度必须介于 0 和 1 之间")
	public String getRecordFlag() {
		return recordFlag;
	}

	public void setRecordFlag(String recordFlag) {
		this.recordFlag = recordFlag;
	}
	
}